//
//  PlayerView.h
//  StroeBode
//
//  Created by Kratos on 14/12/5.
//
//  视频播放器

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@interface PlayerView : UIView
@property (nonatomic , assign) CGFloat   volume;//声音
@property (nonatomic , assign) CGFloat x;
@property (nonatomic , assign) CGFloat y;

/**
 * 设置是否自动播放
 * @param flag 默认NO
 * @return 
 * @author Kratos
 */
-(void)setAutomataPlayWhenReady:(BOOL)flag;


/**
 * 设置视频流链接
 * @param urlstr 链接
 * @return
 * @author Kratos
 */
-(void)setAVUrl:(NSString *)urlstr;


/**
 * 设置本地视频
 * @param path 本地路径
 * @return 
 * @author Kratos
 */
-(void)setLocalAVPath:(NSString *)path;


-(IBAction)play;
-(IBAction)pause;
@end
